#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <math.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
public slots:
    void AddNumberToOperand(int i);
    void on_button0_clicked();
    void on_button1_clicked();
    void on_button2_clicked();
    void on_button3_clicked();
    void on_button4_clicked();
    void on_button5_clicked();
    void on_button6_clicked();
    void on_button7_clicked();
    void on_button8_clicked();
    void on_button9_clicked();
    void on_buttonJia_clicked();
    void on_buttonJian_clicked();
    void on_buttonChen_clicked();
    void on_buttonChu_clicked();
    void on_buttonClear_clicked();
    void on_buttonDeng_clicked();
    void on_buttonBs_clicked();
    void on_buttonPoint_clicked();

private:
    Ui::MainWindow *ui;
    int op, op1, op2;
    enum{
        OPERATOR_ADD = 0,
        OPERATOR_MINUS = 1,
        OPERATOR_MULTIPLY = 2,
        OPERATOR_DIVIDE = 3,
        OPERATOR_UP = 4
    };
};

#endif // MAINWINDOW_H
